Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

567
Vistas
Angular CLI v13 - Can not run "ng" commands

I upgraded Angular CLI to v13 globally, and when I try to use ng command it gives me this error:

enter image description here

I saw here that Angular v13 is compatible with Node v16.10.x so I installed Node v16.10.0 and it does not work again.

I perform standard operations:

npm uninstall -g @angular/cli
npm install -g @angular/cli@latest

I even try to clear npm cache and it still didn't work.

When I downgrade it and install Angular CLI v12 globally, everything works again.

Is this some known Angular CLI v13 issue?

Environment:

Windows 10 (win32 x64)

Update:

As a lot of answers suggested, I changed Windows Scripting Host to Node.js to run the .js files. Now ng command is executed, BUT whatever command I type, it always give me ng help output with all Available Commands. It's like all commands are mapped to ng help command.

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

I hope this solution works for you:

  1. Remove the user environment variable: C:\Users\AppData\Roaming\npm\node_modules@angular\cli\bin

  2. Uninstall angular

  3. Uninstall nodejs

  4. Reboot your pc

  5. Reinstall nodejs & angular

over 4 years ago · Santiago Trujillo Denunciar

0

On Windows .js files are associated to Windows Scripting Host by default, so the script will not be run with Node. You can open explorer and find a .js file, you can check that it's not considered JavaScript.

Open a JavaScript file's properties and in the associated programs (or open with), link the node.js exe file to open that kind of files.

over 4 years ago · Santiago Trujillo Denunciar

0

  1. Use the following command to delete your version

npm uninstall -g @angular/cli

  1. Unistall the node file with the following command

npm uninstall

  1. Go to your computer's file explorer Enter drive C. In the "search This PC" section, search for the word "App Data" and then "Roaming" Delete your "npm" file in the "Roaming" folder
  2. Enter the "npm install" command again
  3. Now it's time to enter the command "npm install -g @ angular / cli"
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda